#ifndef __LINSYST_H
#define __LINSYST_H

typedef struct {
	int size;
	int ref;
	float el_digref;
	int max_it;
	float prec;
	float * matA;
	float * vetB;
	float * vetX0;
	float * vetX1;
} syst;

syst * loadsyst(const char * file);

void destroysyst(syst * lsys);

#define MAT_A(s,i,j) (s->matA[i*s->size + j])


#endif
